<nav class="TableObject
            actions
            border-bottom
            border-md-0
            p-2
            pt-lg-4
            px-lg-0
            overflow-x-scroll">
  <div class="TableObject-item hide-lg hide-xl">
    {{>mobilenav}}
  </div>

  <div class="TableObject-item hide-sm hide-md">
    <button class="btn btn-sm" id="minibutton-home" 
      onclick="window.location.href='{{page_route}}';"
    >
      {{tt.navbar.home_button}}
    </button>
  </div>

  <div
    class="TableObject-item TableObject-item--primary px-2"
    {{^search}}style="visibility:hidden"{{/search}}
  >
    {{>searchbar}}
  </div>

  <div class="TableObject-item hide-sm hide-md">
    <div class="BtnGroup d-flex">
      {{#overview}}
        <button
          class="btn BtnGroup-item btn-sm"
          onclick="window.location.href='{{overview_path}}';"
          id="minibutton-overview"
        >
          {{tt.navbar.overview_button}}
        </button>
      {{/overview}}

      {{#latest_changes}}
        <button
          class="btn BtnGroup-item btn-sm"
          onclick="window.location.href='{{latest_changes_path}}';"
          id="minibutton-latest-changes"
        >
          {{tt.navbar.latest_changes_button}}
        </button>
      {{/latest_changes}}
    </div>
  </div>

  <div class="TableObject-item px-2">
    <div class="BtnGroup d-flex">
      {{#history}}
        <button
          class="btn BtnGroup-item btn-sm hide-sm hide-md"
          onclick="window.location.href='{{history_path}}/{{escaped_url_path}}/{{version}}';"
          id="minibutton-history"
        >
          {{tt.navbar.history_button}}
        </button>
      {{/history}}

      {{#allow_editing}}
        {{#allow_uploads}}
          <button
            class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-upload-page"
          >
            {{tt.navbar.upload_button}}
          </button>
        {{/allow_uploads}}

        {{#editable}}
          <button
            class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-rename-page"
          >
            {{tt.navbar.rename_button}}
          </button>
          <button
            class="btn BtnGroup-item btn-sm hide-sm hide-md"
            onclick="window.location.href='{{edit_path}}/{{escaped_url_path}}';"
            id="minibutton-edit-page"
          >
            {{tt.navbar.edit_button}}
          </button>
        {{/editable}}
      {{/allow_editing}}
    </div>
  </div>

  {{#allow_editing}}
    {{#editable}}
      <div class="TableObject-item">
        <button class="btn btn-primary btn-sm minibutton-new-page">
          {{tt.navbar.new_button}}
        </button>
      </div>
    {{/editable}}

    {{^editable}}
      {{#newable}}
        <div class="TableObject-item">
          <button class="btn btn-primary btn-sm minibutton-new-page">
            {{tt.navbar.new_button}}
          </button>
        </div>
      {{/newable}}
    {{/editable}}
  {{/allow_editing}}
</nav>
